<?xml version="1.0" encoding="utf-8"?>
<mameconfig version="10">
  <controlleralias>
    <id>keyboard</id>
    <alias>keyboard</alias>
  </controlleralias>
  <controlleralias>
    <id>USB Gamepad :1</id>
    <alias>PS2USB1</alias>
  </controlleralias>
  <controlleralias>
    <id>USB Gamepad :2</id>
    <alias>PS2USB2</alias>
  </controlleralias>
  <controlleralias>
    <id>ATRAK Device #1</id>
    <alias>AimTrakPad1</alias>
  </controlleralias>
  <controlleralias>
    <id>HID#VID_D209_PID_1601_MI_02#</id>
    <alias>AimTrakMouse1</alias>
  </controlleralias>
  <system name="ribbit">
    <controller id="keyboard">
      <input>
        <port type="P1_JOYSTICK_UP">
          <newseq type="standard">JOYCODE_YAXIS_DOWN_SWITCH</newseq>
        </port>
      </input>
    </controller>
    <input />
  </system>
  <system name="default">
    <controller id="PS2USB1">
      <input>
        <port type="P4_BUTTON4">
          <newseq type="standard">JOYCODE_1_BUTTON1</newseq>
        </port>
        <port type="P4_START">
          <newseq type="standard">JOYCODE_1_BUTTON10</newseq>
        </port>
        <port type="START4">
          <newseq type="standard">JOYCODE_1_BUTTON10</newseq>
        </port>
        <port type="P4_BUTTON2">
          <newseq type="standard">JOYCODE_1_BUTTON2</newseq>
        </port>
        <port type="P4_BUTTON1">
          <newseq type="standard">JOYCODE_1_BUTTON3</newseq>
        </port>
        <port type="P4_BUTTON3">
          <newseq type="standard">JOYCODE_1_BUTTON4</newseq>
        </port>
        <port type="P4_BUTTON7">
          <newseq type="standard">JOYCODE_1_BUTTON5</newseq>
        </port>
        <port type="P4_BUTTON8">
          <newseq type="standard">JOYCODE_1_BUTTON6</newseq>
        </port>
        <port type="P4_BUTTON5">
          <newseq type="standard">JOYCODE_1_BUTTON7</newseq>
        </port>
        <port type="P4_BUTTON6">
          <newseq type="standard">JOYCODE_1_BUTTON8</newseq>
        </port>
        <port type="COIN4">
          <newseq type="standard">JOYCODE_1_BUTTON9</newseq>
        </port>
        <port type="P4_AD_STICK_X">
          <newseq type="standard">JOYCODE_1_XAXIS</newseq>
        </port>
        <port type="P4_JOYSTICK_LEFT">
          <newseq type="standard">JOYCODE_1_XAXIS_LEFT_SWITCH</newseq>
        </port>
        <port type="P4_JOYSTICK_RIGHT">
          <newseq type="standard">JOYCODE_1_XAXIS_RIGHT_SWITCH</newseq>
        </port>
        <port type="P4_AD_STICK_Y">
          <newseq type="standard">JOYCODE_1_YAXIS</newseq>
        </port>
        <port type="P4_JOYSTICK_DOWN">
          <newseq type="standard">JOYCODE_1_YAXIS_DOWN_SWITCH</newseq>
        </port>
        <port type="P4_JOYSTICK_UP">
          <newseq type="standard">JOYCODE_1_YAXIS_UP_SWITCH</newseq>
        </port>
      </input>
    </controller>
    <controller id="PS2USB2">
      <input>
        <port type="P3_BUTTON4">
          <newseq type="standard">JOYCODE_2_BUTTON1</newseq>
        </port>
        <port type="START3">
          <newseq type="standard">JOYCODE_2_BUTTON10</newseq>
        </port>
        <port type="P3_BUTTON2">
          <newseq type="standard">JOYCODE_2_BUTTON2</newseq>
        </port>
        <port type="P3_BUTTON1">
          <newseq type="standard">JOYCODE_2_BUTTON3</newseq>
        </port>
        <port type="P3_BUTTON3">
          <newseq type="standard">JOYCODE_2_BUTTON4</newseq>
        </port>
        <port type="P3_BUTTON5">
          <newseq type="standard">JOYCODE_2_BUTTON7</newseq>
        </port>
        <port type="P3_BUTTON6">
          <newseq type="standard">JOYCODE_2_BUTTON8</newseq>
        </port>
        <port type="COIN3">
          <newseq type="standard">JOYCODE_2_BUTTON9</newseq>
        </port>
        <port type="P3_JOYSTICK_LEFT">
          <newseq type="standard">JOYCODE_2_XAXIS_LEFT_SWITCH</newseq>
        </port>
        <port type="P3_JOYSTICK_RIGHT">
          <newseq type="standard">JOYCODE_2_XAXIS_RIGHT_SWITCH</newseq>
        </port>
        <port type="P3_JOYSTICK_DOWN">
          <newseq type="standard">JOYCODE_2_YAXIS_DOWN_SWITCH</newseq>
        </port>
        <port type="P3_JOYSTICK_UP">
          <newseq type="standard">JOYCODE_2_YAXIS_UP_SWITCH</newseq>
        </port>
      </input>
    </controller>
    <controller id="AimTrakPad1">
      <input>
        <port type="P1_BUTTON1">
          <newseq type="standard">JOYCODE_1_BUTTON4</newseq>
        </port>
        <port type="P1_BUTTON3">
          <newseq type="standard">JOYCODE_1_BUTTON5</newseq>
        </port>
        <port type="P1_START">
          <newseq type="standard">JOYCODE_1_BUTTON1</newseq>
        </port>
        <port type="COIN4">
          <newseq type="standard">JOYCODE_1_BUTTON2</newseq>
        </port>
      </input>
    </controller>
    <controller id="AimTrakMouse1">
      <input>
        <port type="P1_LIGHTGUN_X">
          <newseq type="standard">NONE</newseq>
        </port>
      </input>
    </controller>
    <input />
  </system>
</mameconfig>